package com.jrzh.mvc.service.sys;

import java.io.InputStream;
import java.util.List;

import com.jrzh.common.exception.ProjectException;
import com.jrzh.framework.base.service.BaseServiceI;
import com.jrzh.framework.bean.JqGridTree;
import com.jrzh.framework.bean.SessionUser;
import com.jrzh.framework.bean.TreeViewBean;
import com.jrzh.mvc.model.sys.ResourcesModel;
import com.jrzh.mvc.model.sys.RoleModel;
import com.jrzh.mvc.search.sys.ResourcesSearch;
import com.jrzh.mvc.view.sys.ResourcesView;

public interface ResourcesServiceI extends BaseServiceI<ResourcesModel, ResourcesSearch, ResourcesView> {
	void deleteAndChildren(ResourcesModel model, SessionUser user) throws ProjectException;
	
	void saveInit(String project, InputStream in) throws ProjectException;

	List<TreeViewBean> getTreeByRole(ResourcesSearch search,RoleModel role)throws ProjectException;

	void saveInitList(String project, List<InputStream> ins) throws ProjectException;
	
	 JqGridTree treegrid(ResourcesSearch search, SessionUser sessionUser) throws ProjectException;
}
